﻿// -----------------------------------------------------------------------
// <copyright file="RouteConfig.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace NetFramework.Router.Configuration
{
    using System;
    using System.Collections.Generic;
    using System.Xml.Serialization;
using NetFramework.Configuration;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    [Serializable]
    [XmlRoot("RouteConfig")]
    [ConfigFile("Configs/Route.config")]
    public class RouteConfig
    {
        /// <summary>
        /// 获取或设置是否开启Route功能
        /// </summary>
        [XmlElement("enabled")]
        public bool Enabled { get; set; }

        /// <summary>
        /// 获取或设置页面路由节点配置
        /// </summary>
        [XmlArray("routeList")]
        [XmlArrayItem("route")]
        public List<PagedRouteInfo> PagedRouteInfo { get; set; }
    }
}
